package com.tn.exam.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * InfoQuestionType entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "info_question_type")
public class InfoQuestionType extends BaseEntity implements java.io.Serializable {

	// Fields

	private Integer questionTypeId;
	private String questionTypeName;
	private Integer questionTypeValue;

	// Constructors

	/** default constructor */
	public InfoQuestionType() {
	}

	/** minimal constructor */
	public InfoQuestionType(String questionTypeName) {
		this.questionTypeName = questionTypeName;
	}

	/** full constructor */
	public InfoQuestionType(String questionTypeName, Integer questionTypeValue) {
		this.questionTypeName = questionTypeName;
		this.questionTypeValue = questionTypeValue;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "question_type_id", unique = true, nullable = false)
	public Integer getQuestionTypeId() {
		return this.questionTypeId;
	}

	public void setQuestionTypeId(Integer questionTypeId) {
		this.questionTypeId = questionTypeId;
	}

	@Column(name = "question_type_name", nullable = false, length = 32)
	public String getQuestionTypeName() {
		return this.questionTypeName;
	}

	public void setQuestionTypeName(String questionTypeName) {
		this.questionTypeName = questionTypeName;
	}

	@Column(name = "question_type_value")
	public Integer getQuestionTypeValue() {
		return this.questionTypeValue;
	}

	public void setQuestionTypeValue(Integer questionTypeValue) {
		this.questionTypeValue = questionTypeValue;
	}

}